import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  // mode: 'history',
  mode: 'hash',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      redirect: '/comprehensive',
      children: [
        {
          path: '/comprehensive',
          name: 'Comprehensive',
          component: () => import('./views/comprehensive/comprehensive.vue')
        },
        {
          path: '/datasea',
          name: 'DataSea',
          component: () => import('./views/datasea/dataSea.vue')
        },
        {
          path: '/organization',
          name: 'Organization',
          component: () => import('./views/organization/organization.vue')
        }
      ]
    }
  ]
})
